package org.cqipc.edu.dao;

import org.apache.ibatis.annotations.Select;
import org.cqipc.edu.entity.Type2;

import java.util.List;

/**
 * @Description: 类别2数据接口
 * @ClassNmae: Type2Dao
 * @Author: HeYue
 * @DateTime: 2020-11-01 05:56
 **/
public interface Type2Dao {

    @Select("select * from type2")
    List<Type2> queryAll();

    @Select("select * from type2 where type1_id=#{type1d}")
    List<Type2> queryBytype1d(Integer type1d);

    @Select("select * from type2 where type2_id=#{type2d}")
    Type2 queryBytype2d(Integer type2d);
}
